package com.siloam.module;

import java.util.List;

/**
 * 小组
 * 分为人员组和侍奉组
 * @author rzpeng
 *
 */
public class Group {
	/**
	 * 小组类型:人员组
	 */
	public static final int TYPE_USER = 1;
	/**
	 * 小组类型：侍奉组
	 */
	public static final int TYPE_SEVICE = 2;
	
	private int id;
	private String name;
	private String remark;
	private int type;
	
	private List<GroupUser> groupUsers;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public List<GroupUser> getGroupUsers() {
		return groupUsers;
	}
	public void setGroupUsers(List<GroupUser> groupUsers) {
		this.groupUsers = groupUsers;
	}
	
	public String getTypeText(){
		if(type == TYPE_USER){
			return "人员组";
		} else {
			return "侍奉组";
		}
	}
	
}
